<template>
  <div>
    <van-tabbar v-model="active" placeholder route border>
      <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>

      <van-tabbar-item to="/issue">
        <template #icon="props" >
          <van-icon name="add-o" />
       <div class="text">发布</div>
        </template>
      </van-tabbar-item>
      <van-tabbar-item icon="friends-o"  to="/my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
import { Tabbar, TabbarItem } from "vant";
import { Icon } from "vant";

export default {
  name: "t-footer",
  data() {
    return {
      active: 0,
    };
  },
  components: {
    [Tabbar.name]: Tabbar,
    [TabbarItem.name]: TabbarItem,
    [Icon.name]: Icon,
  },
  created() {},
  // 挂载后
  mounted() {},
  methods: {},
};
</script>
<style lang='less'>
.text{
  font-size: 12px;
  margin-top: 6px;
}
</style>